/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bdclass;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;

/**
 *
 * @author DEMRR
 */
public class V_pedido {
    
    
    public ResultSet SelectPedido(int id)
    {
        ResultSet rs=null;
                                  
        try
        {
        Conexion cn=new Conexion();
        rs=cn.connect().executeQuery("select * from v_pedido WHERE pedido="+id);
        
        //rs.close();
        //cn.getCon().close();


        }catch(Exception ex)
         {
               System.err.println(ex.toString());
         }
        
        return rs;
    }
    
    
}
